package cn.js.sangu.unitStore.common.exception;

import lombok.Getter;

/**
 * 说明：服务异常类
 * 作者：linshuo
 * 日期：2024/8/8 12:07
 */
@Getter
public class ServiceException extends RuntimeException{

    private final String code;

    public ServiceException(String msg){
        super(msg);
        this.code = "500";
    }

    public ServiceException(String code,String msg){
        super(msg);
        this.code=code;
    }
}
